/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ejercicio.practica9;

/**
 *
 * @author manolo
 */
public class UsamonitorImpresion {
    
     
     public static void main (String[] args){
          int  numNucleos = Runtime.getRuntime().availableProcessors();
          int numHilos = (int) (numNucleos/(1-0.5));
          
          Thread[] hilos = new Thread[4];
          for(int i=0;i < numHilos;i++){
              hilos[i] = new Thread(new monitorImpresion());
              hilos[i].start();
          }
     }
}
